Integrand size = 21, antiderivative size = 745 \[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}-c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}+c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}} \]
[Out]
Time = 1.34 (sec) , antiderivative size = 745, normalized size of antiderivative = 1.00, number of steps used = 46, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.476, Rules used = {4817, 4757, 4827, 739, 212, 4825, 4617, 2221, 2317, 2438} \[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{-\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{-\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {d c^2+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {d c^2+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i \sqrt {-d} c+\sqrt {d c^2+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i \sqrt {-d} c+\sqrt {d c^2+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}-c^2 \sqrt {-d} x}{\sqrt {1-c^2 x^2} \sqrt {c^2 d+e}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}-\frac {b c \text {arctanh}\left (\frac {c^2 \sqrt {-d} x+\sqrt {e}}{\sqrt {1-c^2 x^2} \sqrt {c^2 d+e}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}} \]
[In]
[Out]
Rule 212
Rule 739
Rule 2221
Rule 2317
Rule 2438
Rule 4617
Rule 4757
Rule 4817
Rule 4825
Rule 4827
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {d (a+b \arcsin (c x))}{e \left (d+e x^2\right )^2}+\frac {a+b \arcsin (c x)}{e \left (d+e x^2\right )}\right ) \, dx \\ & = \frac {\int \frac {a+b \arcsin (c x)}{d+e x^2} \, dx}{e}-\frac {d \int \frac {a+b \arcsin (c x)}{\left (d+e x^2\right )^2} \, dx}{e} \\ & = \frac {\int \left (\frac {\sqrt {-d} (a+b \arcsin (c x))}{2 d \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {\sqrt {-d} (a+b \arcsin (c x))}{2 d \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx}{e}-\frac {d \int \left (-\frac {e (a+b \arcsin (c x))}{4 d \left (\sqrt {-d} \sqrt {e}-e x\right )^2}-\frac {e (a+b \arcsin (c x))}{4 d \left (\sqrt {-d} \sqrt {e}+e x\right )^2}-\frac {e (a+b \arcsin (c x))}{2 d \left (-d e-e^2 x^2\right )}\right ) \, dx}{e} \\ & = \frac {1}{4} \int \frac {a+b \arcsin (c x)}{\left (\sqrt {-d} \sqrt {e}-e x\right )^2} \, dx+\frac {1}{4} \int \frac {a+b \arcsin (c x)}{\left (\sqrt {-d} \sqrt {e}+e x\right )^2} \, dx+\frac {1}{2} \int \frac {a+b \arcsin (c x)}{-d e-e^2 x^2} \, dx-\frac {\int \frac {a+b \arcsin (c x)}{\sqrt {-d}-\sqrt {e} x} \, dx}{2 \sqrt {-d} e}-\frac {\int \frac {a+b \arcsin (c x)}{\sqrt {-d}+\sqrt {e} x} \, dx}{2 \sqrt {-d} e} \\ & = \frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}+\frac {1}{2} \int \left (-\frac {\sqrt {-d} (a+b \arcsin (c x))}{2 d e \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {\sqrt {-d} (a+b \arcsin (c x))}{2 d e \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx-\frac {(b c) \int \frac {1}{\left (\sqrt {-d} \sqrt {e}-e x\right ) \sqrt {1-c^2 x^2}} \, dx}{4 e}+\frac {(b c) \int \frac {1}{\left (\sqrt {-d} \sqrt {e}+e x\right ) \sqrt {1-c^2 x^2}} \, dx}{4 e}-\frac {\text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}-\sqrt {e} \sin (x)} \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e}-\frac {\text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}+\sqrt {e} \sin (x)} \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e} \\ & = \frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}+\frac {(b c) \text {Subst}\left (\int \frac {1}{c^2 d e+e^2-x^2} \, dx,x,\frac {-e+c^2 \sqrt {-d} \sqrt {e} x}{\sqrt {1-c^2 x^2}}\right )}{4 e}-\frac {(b c) \text {Subst}\left (\int \frac {1}{c^2 d e+e^2-x^2} \, dx,x,\frac {e+c^2 \sqrt {-d} \sqrt {e} x}{\sqrt {1-c^2 x^2}}\right )}{4 e}-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e}-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e}-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e}-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e}+\frac {\int \frac {a+b \arcsin (c x)}{\sqrt {-d}-\sqrt {e} x} \, dx}{4 \sqrt {-d} e}+\frac {\int \frac {a+b \arcsin (c x)}{\sqrt {-d}+\sqrt {e} x} \, dx}{4 \sqrt {-d} e} \\ & = \frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}-c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}+c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e^{3/2}}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e^{3/2}}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e^{3/2}}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 \sqrt {-d} e^{3/2}}+\frac {\text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}-\sqrt {e} \sin (x)} \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e}+\frac {\text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}+\sqrt {e} \sin (x)} \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e} \\ & = \frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}-c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}+c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e}+\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e}+\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e}+\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e} \\ & = \frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}-c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}+c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e^{3/2}}-\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e^{3/2}}+\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e^{3/2}}-\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{4 \sqrt {-d} e^{3/2}} \\ & = \frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}-c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}+c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} e^{3/2}}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{4 \sqrt {-d} e^{3/2}} \\ & = \frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )}-\frac {a+b \arcsin (c x)}{4 e^{3/2} \left (\sqrt {-d}+\sqrt {e} x\right )}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}-c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}-\frac {b c \text {arctanh}\left (\frac {\sqrt {e}+c^2 \sqrt {-d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{4 e^{3/2} \sqrt {c^2 d+e}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}}-\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{4 \sqrt {-d} e^{3/2}} \\ \end{align*}
Time = 0.88 (sec) , antiderivative size = 603, normalized size of antiderivative = 0.81 \[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\frac {-\frac {4 a \sqrt {e} x}{d+e x^2}+\frac {4 a \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{\sqrt {d}}+b \left (-\frac {2 \arcsin (c x)}{i \sqrt {d}+\sqrt {e} x}-2 i \left (\frac {\arcsin (c x)}{\sqrt {d}+i \sqrt {e} x}-\frac {c \arctan \left (\frac {i \sqrt {e}+c^2 \sqrt {d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{\sqrt {c^2 d+e}}\right )-\frac {2 c \text {arctanh}\left (\frac {\sqrt {e}+i c^2 \sqrt {d} x}{\sqrt {c^2 d+e} \sqrt {1-c^2 x^2}}\right )}{\sqrt {c^2 d+e}}-\frac {\arcsin (c x) \left (\arcsin (c x)+2 i \left (\log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}-\sqrt {c^2 d+e}}\right )+\log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )\right )\right )+2 \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{-c \sqrt {d}+\sqrt {c^2 d+e}}\right )+2 \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )}{\sqrt {d}}+\frac {\arcsin (c x) \left (\arcsin (c x)+2 i \left (\log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{-c \sqrt {d}+\sqrt {c^2 d+e}}\right )+\log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )\right )\right )+2 \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}-\sqrt {c^2 d+e}}\right )+2 \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )}{\sqrt {d}}\right )}{8 e^{3/2}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 3.86 (sec) , antiderivative size = 811, normalized size of antiderivative = 1.09
method | result | size |
derivativedivides | \(\frac {-\frac {a \,c^{5} x}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}+\frac {a \,c^{3} \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{2 e \sqrt {d e}}+b \,c^{4} \left (-\frac {\arcsin \left (c x \right ) c x}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}-\frac {\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (-\textit {\_R1}^{2} e +2 c^{2} d +e \right )}}{4 e}-\frac {\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}}{4 e}+\frac {\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}\, \left (-2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, d \,c^{2}+2 d^{2} c^{4}+2 c^{2} e d -\sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, e \right ) \operatorname {arctanh}\left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}}\right )}{2 e^{4} \left (c^{2} d +e \right )}-\frac {\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}\, \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) \operatorname {arctanh}\left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}}\right )}{2 e^{4}}+\frac {\sqrt {-e \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right )}\, \left (2 d^{2} c^{4}+2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, d \,c^{2}+2 c^{2} e d +\sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, e \right ) \arctan \left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (-2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}-e \right ) e}}\right )}{2 e^{4} \left (c^{2} d +e \right )}-\frac {\sqrt {-e \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right )}\, \left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) \arctan \left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (-2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}-e \right ) e}}\right )}{2 e^{4}}\right )}{c^{3}}\) | \(811\) |
default | \(\frac {-\frac {a \,c^{5} x}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}+\frac {a \,c^{3} \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{2 e \sqrt {d e}}+b \,c^{4} \left (-\frac {\arcsin \left (c x \right ) c x}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}-\frac {\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (-\textit {\_R1}^{2} e +2 c^{2} d +e \right )}}{4 e}-\frac {\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}}{4 e}+\frac {\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}\, \left (-2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, d \,c^{2}+2 d^{2} c^{4}+2 c^{2} e d -\sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, e \right ) \operatorname {arctanh}\left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}}\right )}{2 e^{4} \left (c^{2} d +e \right )}-\frac {\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}\, \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) \operatorname {arctanh}\left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}}\right )}{2 e^{4}}+\frac {\sqrt {-e \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right )}\, \left (2 d^{2} c^{4}+2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, d \,c^{2}+2 c^{2} e d +\sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, e \right ) \arctan \left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (-2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}-e \right ) e}}\right )}{2 e^{4} \left (c^{2} d +e \right )}-\frac {\sqrt {-e \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right )}\, \left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) \arctan \left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (-2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}-e \right ) e}}\right )}{2 e^{4}}\right )}{c^{3}}\) | \(811\) |
parts | \(-\frac {a x}{2 e \left (e \,x^{2}+d \right )}+\frac {a \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{2 e \sqrt {d e}}+\frac {b \left (-\frac {c^{5} \arcsin \left (c x \right ) x}{2 e \left (c^{2} e \,x^{2}+c^{2} d \right )}+\frac {c^{4} \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (\textit {\_R1}^{2} e -2 c^{2} d -e \right )}\right )}{4 e}+\frac {c^{4} \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} e -2 c^{2} d -e}\right )}{4 e}+\frac {\sqrt {-e \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right )}\, \left (2 d^{2} c^{4}+2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, d \,c^{2}+2 c^{2} e d +\sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, e \right ) c^{4} \arctan \left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (-2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}-e \right ) e}}\right )}{2 e^{4} \left (c^{2} d +e \right )}-\frac {\sqrt {-e \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right )}\, \left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) \arctan \left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (-2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}-e \right ) e}}\right ) c^{4}}{2 e^{4}}+\frac {\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}\, \left (-2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, d \,c^{2}+2 d^{2} c^{4}+2 c^{2} e d -\sqrt {d \,c^{2} \left (c^{2} d +e \right )}\, e \right ) c^{4} \operatorname {arctanh}\left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}}\right )}{2 e^{4} \left (c^{2} d +e \right )}-\frac {\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}\, \left (2 c^{2} d -2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) \operatorname {arctanh}\left (\frac {e \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{\sqrt {\left (2 c^{2} d +2 \sqrt {d \,c^{2} \left (c^{2} d +e \right )}+e \right ) e}}\right ) c^{4}}{2 e^{4}}\right )}{c^{3}}\) | \(816\) |
[In]
[Out]
\[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\int { \frac {{\left (b \arcsin \left (c x\right ) + a\right )} x^{2}}{{\left (e x^{2} + d\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\int \frac {x^{2} \left (a + b \operatorname {asin}{\left (c x \right )}\right )}{\left (d + e x^{2}\right )^{2}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\int { \frac {{\left (b \arcsin \left (c x\right ) + a\right )} x^{2}}{{\left (e x^{2} + d\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x^2 (a+b \arcsin (c x))}{\left (d+e x^2\right )^2} \, dx=\int \frac {x^2\,\left (a+b\,\mathrm {asin}\left (c\,x\right )\right )}{{\left (e\,x^2+d\right )}^2} \,d x \]
[In]
[Out]